<template>
	<view class="box">
		<view class="topbox">
			<image src="../../static/logo.png" mode=""></image>
			<view class="rightbox">
				<view class="name">
					订单派送中
				</view>
				<view class="time">
					预计明天送达
				</view>
				<view class="order">
					<text>中通快递:56465465</text>
					<text class="cope" @click="cope">复制</text>
				</view>
			</view>
		</view>
		<BaseTitles name="物流详情"></BaseTitles>
		<view class="sitebox">
			<view class="state">
				【广州市】等待空运装机下一站深圳市
			</view>
			<view class="time">
				2021.09.05 15:17
			</view>
		</view>
		
	</view>
</template>

<script>
	import BaseTitles from "../../components/BaseTitles/index.vue"
	export default {
		data() {
			return {

			}
		},
		methods: {
			cope() {
				uni.setClipboardData({
					data: "151564",
					success: function(res) {
						uni.showToast({
							title: "复制成功"
						})
					}
				})
			}
		},
		components: {
			BaseTitles
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		position: fixed;
		top: 0;
		bottom: 0;
		right: 0;
		left: 0;
		background-color: #FFFFFF;
		padding-top: 100rpx;
		box-sizing: border-box;
	}

	.topbox {
		width: 100%;
		height: 224rpx;
		background-image: linear-gradient(92deg,
				#fc6a30 0%,
				#f62e1d 100%);
		display: flex;
		align-items: center;
		padding: 34rpx 127rpx 57rpx 47rpx;

		image {
			width: 88rpx;
			height: 70rpx;
		}

		.rightbox {
			margin-left: 34rpx;

			.name {
				font-family: SourceHanSansCN-Medium;
				font-size: 32rpx;
				color: #ffffff;
				font-weight: 700;
			}

			.time {
				font-family: SourceHanSansCN-Regular;
				font-size: 28rpx;
				color: #ffffff;
				margin-top: 20rpx;
			}

			.order {
				font-family: SourceHanSansCN-Regular;
				font-size: 26rpx;
				color: #ffffff;
				margin-top: 20rpx;

				.cope {
					display: inline-block;
					width: 92rpx;
					height: 34rpx;
					background-color: #ffffff;
					border-radius: 17rpx;
					margin-left: 47rpx;
					line-height: 34rpx;
					text-align: center;
					font-family: MicrosoftYaHei;
					font-size: 24rpx;
					color: #f73c22;
				}
			}
		}
	}

	.sitebox {
		width: 690rpx;
		height: 96rpx;
		background-color: #f1f1f1;
		margin: 0 auto;
		margin-top: 20rpx;
		padding: 12rpx 42rpx;
		box-sizing: border-box;

		.state {
			font-family: SourceHanSansCN-Regular;
			font-size: 28rpx;
			color: #f6301e;
		}

		.time {
			font-family: SourceHanSansCN-Regular;
			font-size: 26rpx;
			color: #999999;
			margin-top: 5rpx;
			padding-left: 10rpx;
			box-sizing: border-box;
		}
	}
</style>
